package com.bbs.service;

import com.bbs.domain.Page;
import com.bbs.entity.Post;
import com.bbs.entity.User;

import java.util.List;

public interface PostService {
    public Page<Post> findByPage(int size);
    int insertPost(Post post);
//    void findScan();
    Post findById(int pid);
    int updateById(int pid);

    //发布帖子后更新用户发帖数量
    int updateUserPostCount(int uid);

    //查询个人主页的列子列表
    List<Post> selectUserPost(int uid);


}
